const initstate = {
    count: 0,
    msg: 'hello',
    info:'xixixi'
}

export default function (state = initstate, action) {

    switch (action.type) {
        case 'ADD':
            return {
                ...state,count:state.count+1
            }
        default:
            return state;
}

}